const express=require("express");

//引入自己写的控制层
// const userController=require("../controller/userController")
// const userController2=require("../controller/userController2")
const userController3=require("../controller/userController3")


//stu
const stuController=require("../controller/stuController");

//判定
const userController=require("../controller/userController");

//打印
// const bodyController=require("../controller/bodyController");
const bodyController=require("../controller/bodyController")

const router=express.Router();//调用express对象提供的路由方法，获取路由对象



router.post("/login.do",userController3.getUser)

//调用express对象提供的路由方法，获取路由对象

router.get("/addStudent.do",stuController.addStudent);
router.get("/checkUser.do",userController.checkUser);

// router.get("/getAllContext.do",bodyController.getAllContext);
//获取所有用户信息
router.get("/getCurrentUser.do",bodyController.getCurrentUser)

router.get("/getPageTotal.do",bodyController.getPageTotal)


module.exports=router;



